import axios, { CancelTokenSource, CancelTokenStatic } from "axios"



export function getCancelTokenSource(): CancelTokenSource {
    const cancel: CancelTokenStatic = axios.CancelToken
    const source = cancel.source()
    return source
}


export function sleep(time: number) {
    return new Promise((resolve) => {
        setTimeout(resolve, time * 1000);
    })
}



